import React from "react";
import {renderRoutes, RouteConfig, RouteConfigComponentProps} from 'react-router-config';
import {SwitchProps} from "react-router";

export interface IRouterConfig {
    route?: RouteConfig[],
    extraProps?: any,
    switchProps?: SwitchProps
}

const a = require('../views/view1/route.ts');

export const Routes = [{
    
}];

export default ({route = Routes}: IRouterConfig) => renderRoutes(route);